<template>
  <div class="error-page">
    <n-result status="404" title="404 资源不存在">
      <template #footer>
        <n-button @click="goHome">回到首页</n-button>
      </template>
    </n-result>
  </div>
</template>

<script setup lang="ts">
const router = useRouter()
const goHome = () => {
  router.push('/home')
}
</script>

<style scoped lang="scss">
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
</style>
